<!DOCTYPE html>
<html lang="en" ng-app="app">
<head>
    <meta charset="UTF-8">
    <title>magnific-popup</title>
    <script src="https://cdn.bootcss.com/angular.js/1.5.8/angular.js"></script>
    <script src="http://cdn.bootcss.com/jquery/2.1.4/jquery.min.js"></script>
    <link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://cdn.bootcss.com/bootstrap/3.3.5/js/bootstrap.min.js"></script>
    <script src="http://cdn.bootcss.com/magnific-popup.js/1.0.0/jquery.magnific-popup.min.js"></script>
    <script src="gem.js"></script>
    <link href="http://cdn.bootcss.com/magnific-popup.js/1.0.0/magnific-popup.css" rel="stylesheet">
</head>
<body ng-controller="bodyCtrl">


    <div class="row text-left">
        <div style="float: left;position: relative;" ng-repeat='pic in $root.uploaded.Aquestion' ng-click='$root.setPicPop($event)' href={{pic.url}}>
            <img  ng-src={{pic.url}} alt={{pic.file}} style="width:100px;margin:4px">
            <span style="position: absolute;top:10px;right: 10px;cursor: pointer;" class="glyphicon glyphicon-remove" ng-click="delAquestion($index)"></span>
        </div>
    </div>


    <script>
        var app = angular.module('app', []);

        gem.initApp(app);

        app.controller('bodyCtrl', function($scope,$rootScope) {
            $rootScope.uploaded.Aquestion = [
                {
                    url: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1501716035189&di=31441d0ed3e9cd9852a4b718c054a890&imgtype=0&src=http%3A%2F%2Fh.hiphotos.baidu.com%2Fzhidao%2Fwh%253D450%252C600%2Fsign%3D16e1226b273fb80e0c8469d303e10318%2F54fbb2fb43166d2258423bce402309f79052d2b6.jpg',
                    file: 'qiushanling'
                },
                {
                    url: 'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1501716035187&di=d47cb5ac8fbd4d6365c09c8afb71f86a&imgtype=0&src=http%3A%2F%2Fcartoon.zwbk.org%2FImageUploadTK%2F63468890451350500048183428612.jpg',
                    file: 'qiushanling1'
                }
            ]
        })

    </script>
</body>
</html>